package com.yunao.commons.metasearch.ms;


import com.yunao.commons.metasearch.entity.CatchResult;

import java.util.Comparator;

public class Compare implements Comparator {
    @Override
    public int compare(Object o1, Object o2) {
        CatchResult c1 = (CatchResult) o1;
        CatchResult c2 = (CatchResult) o2;
        if (c1.getQ() < c2.getQ()) {
            return 1;
        }
        return -1;
    }
}
